<?php

class Admin_ProjetosController extends Zend_Controller_Action
{
    private $id;

    public function init()
    {
        $this->id = $this->getRequest()->getParam('id');
    }

    public function indexAction()
    {
        $projetos = new Projetos();
        $this->view->projetos = $projetos->fetchAll(null,'projeto');
        
        $tadeu = $projetos->fetchRow('id = 5');
        $this->view->responsavel = $tadeu->findParentRow('Usuarios');
    }
}

